<template>
    <table>
      <tr colspan="2">
        <th>子组件数据</th>
      </tr>
      <tr>
        <td>name</td>
        <td>{{ myName }}</td>
      </tr>
      <tr>
        <td>age</td>
        <td>{{ myAge }}</td>
      </tr>
    </table>
</template>

<script>
    export default {
        name: "my-component",
        props:['my-name','my-age']
    }
</script>

<style scoped>
 tr td{
   line-grid: initial;
   border: #009A61 1px solid;
   width: 100px;
   height: 100px;
 }
</style>
